
 const API_BASE_URL = 'http://ontologypress.com/api/us'
//const API_BASE_URL = 'http://ontologypress.com/api/ch'
if (typeof window !== 'undefined') {
  function isCHInDomain() {
    return window.location.href.includes('/ch/');
  }
  // 使用这个函数
  if (isCHInDomain()) {
    baseFileUrl = 'http://ontologypress.com/api/ch'
  }
}
module.exports = {
  development: {
    openApiSign: 'd3hZT1VwLVJVLWVOUGlIb2w4OXBkZmxXQmg0YVFtNmQ3VG5FR2JWVUEwTT06MTY4MzMzODc4NzA1NDE1ODg0OA==',
    API_BASE_URL: API_BASE_URL,
    accesstToken: 'developmentToken',
    baseUrl:'/saas/'
  },
  uat: {
    openApiSign: 'd3hZT1VwLVJVLWVOUGlIb2w4OXBkZmxXQmg0YVFtNmQ3VG5FR2JWVUEwTT06MTY4MzMzODc4NzA1NDE1ODg0OA==',
    API_BASE_URL: API_BASE_URL,
    accesstToken: 'UAT_Token'
  },
  production: {
    API_BASE_URL: API_BASE_URL,  // 正式服务器地址
    openApiSign: 'MWs3ME9MQlpUWkxHRGRXaVBlRjY3RTJWT2hRd1pXcUsyZ2NTMDZSbW45TT06MTcxNTUwNzMzNjQ4MDU1ODA4MA==',
    accesstToken: 'productionToken',
    baseUrl:'/saas/ch/'
  },
  productionus: {
    API_BASE_URL: 'http://ontologypress.com/api/us',  // 正式服务器地址
    openApiSign: 'MWs3ME9MQlpUWkxHRGRXaVBlRjY3RTJWT2hRd1pXcUsyZ2NTMDZSbW45TT06MTcxNTUwNzMzNjQ4MDU1ODA4MA==',
    accesstToken: 'productionToken',
    baseUrl:'/saas/us/'
  }
}


